package com.smart.sso.server.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.smart.mvc.dao.mybatis.Dao;
import com.smart.mvc.model.Pagination;
import com.smart.sso.server.model.Log;

/**
 * 日志持久化接口
 * 
 * @author CP
 */
public interface LogDao extends Dao<Log, Integer> {
	
	public List<Log> findAllPagination(Pagination<Log> p);
	
	public List<Log> findPaginationByAccount(@Param("account") String account, Pagination<Log> p);
	
	public List<Log> findPaginationByDate(@Param("startdate") String startDate, @Param("enddate") String endDate , Pagination<Log> p);
	
	public List<Log> findPaginationByAccountAndDate(@Param("userId") Integer userId, @Param("account") String account, @Param("startdate") String startDate , @Param("enddate") String endDate , Pagination<Log> p);
}
